package listener;

import com.corundumstudio.socketio.SocketIOClient;
import com.corundumstudio.socketio.SocketIOServer;
import com.corundumstudio.socketio.listener.DisconnectListener;

/**
 * @Description
 * @Author szw
 * @Data 2019-12-25 11:40
 * @Version 1.0
 */
public class AppDisconnectListener implements DisconnectListener {

    private SocketIOServer server;

    public AppDisconnectListener (SocketIOServer server){
        this.server = server;
    }

    @Override
    public void onDisconnect(SocketIOClient client) {
        System.out.println("{} 断开连接."+ client.getSessionId());
    }
}
